const http = uni.$u.http

/**
 * 接口文档地址：
 * 
 * https://console-docs.apipost.cn/preview/9da4888da01194e6/71ad195137120b43?target_id=ef40f53e-eb4d-4154-94ee-e2b4c6248ea8
 */

/**
 * 公共配置文件接口
 */
export const getConfig = () => http.post('/system/basic/conf')

/**
 * @description 登录
 */
export const login = (params) => http.post('/member/login/login', params)

/**
 * @description 微信小程序授权登录
 */
export const wxappLogin = (params) => http.post('/member/login/wxapp_login', params)

/**
 * @description 微信小程序获得用户手机号
 */
export const getWxMobile = (params, config = {}) => http.post('/member/login/getWxMobile', params, config)

/**
 * @description 绑定手机号
 */
export const bindPhone = (params, config = {}) => http.post('/member/login/binding', params, config)

/**
 * @description 修改用户信息
 */
export const changeUserInfo = (params, config = {}) => http.post('/member/personal/changeInfo', params, config)

/**
 * @description 轮播图
 */
export const getSwiper = (params = {}) => http.post('/shop/index/index', params)

/**
 * @description 福利商城分类
 */
export const getCategory = () => http.post('/shop/category/category')

/**
 * @description 获得商品
 */
export const getGoodsList = (params) => http.post('/shop/goods/get_list', params)

/**
 * @description 获得商品详情
 */
export const getGoodsDetail = (params) => http.post('/shop/goods/getGoodsDetail', params)

/**
 * @description 邀请好友二维码
 */
export const getInviteFriends = () => http.post('/member/member/invite_friends')

/**
 * @description 我的详情
 */
export const getMaterial = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/material', params, config)
/**
 * @description 贡献值总额
 */
export const getGongxianTotal = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/getGongxianTotal', params, config)
/**
 * @description 贡献值明细列表
 */
export const getGongxianList = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/getGongxianList', params, config)
/**
 * @description 贡献值兑换
 */
export const gongxianExchange = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/gongxianExchange', params, config)
/**
 * @description 百城联动主理人列表
 */
export const ownerList = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/ownerList', params, config)
/**
 * @description 百城联动主理人详情
 */
export const ownerInfo = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/ownerInfo', params, config)
/**
 * @description 百城联动主理人点赞操作
 */
export const ownerLikeAction = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/ownerLikeAction', params, config)

/**
 * @description 获取数字人名片
 */
export const getCardInfo = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/getCardInfo', params, config)

/**
 * @description 新增/编辑更新数字人名片
 */
export const updateCard = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/updateCard', params, config)

/**
 * @description 数字人名片浏览记录
 */
export const cardViewLog = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/cardViewLog', params, config)

/**
 * @description 数字人岗位列表显示
 */
export const showCardWork = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/showCardWork', params, config)

/**
 * @description 新增/编辑更新数字人岗位
 */
export const updateCardWork = (params = {}, config = { custom: { jump: true } }) => http.post('/member/personal/updateCardWork', params, config)

/**
 * @description 订单列表
 */
export const getOrderList = (params) => http.post('/shop/transport/order_list', params)

/**
 * @description 订单详情
 */
export const getOrderDetail = (params) => http.post('/shop/transport/order_detail', params)

/**
 * @description 获得排行榜
 */
export const getRankingList = (params) => http.post('/member/personal/rankingList', params)

/**
 * @description 获得兑换码分类
 */
export const getKeyCate = (params) => http.post('/member/member/getKeyCate', params)

/**
 * @description 获得兑换码列表
 */
export const getKeyList = (params) => http.post('/member/member/getKeyList', params)

/**
 * @description 获得兑换码跳转状态
 */
export const clickKetAction = (params) => http.post('/member/member/clickKetAction', params)

/**
 * @description 获得金豆记录
 */
export const getCommissionInfo = () => http.post('/member/personal/commission_info')

/**
 * @description 跳转蒲公英
 */
export const getPugongying = () => http.post('/ai/Pugongying_api/login')

/**
 * @description 推一反三列表
 */
export const getThreeList = (params) => http.post('/member/member/three_list', params)

/**
 * @description 个人资料编辑
 */
export const getChangeInfo = (params) => http.post('/member/personal/changeInfo', params)

/**
 * @description 哇豆互转
 */
export const transfer = (params) => http.post('/member/member/transfer', params)

/**
 * @description 提现
 */
export const applyCash = (params) => http.post('/member/member/apply_cash', params)

/**
 * @description 获得提现记录
 */
export const getCashList = (params) => http.post('/member/member/cash_list', params)

/**
 * @description 获得钱包记录
 */
export const getWalletInfo = (params) => http.post('/member/personal/wallet_info', params)

/**
 * @description 我的团队
 */
export const getTeamList = (params) => http.post('/member/team/team_list', params)

/**
 * @description 收货地址列表
 */
export const getAddressList = (params) => http.post('/member/address/get_list', params)

/**
 * @description 添加收货地址
 */
export const addAddress = (params) => http.post('/member/address/add', params)

/**
 * @description 编辑收货地址
 */
export const editAddress = (params) => http.post('/member/address/edit', params)

/**
 * @description 删除收货地址
 */
export const deleteAddress = (params) => http.post('/member/address/do_delete', params)

/**
 * @description 获得省/市/区
 */
export const getRegion = (params = {}) => http.post('/system/basic/getRegion', params)

/**
 * @description 获得绑定银行卡
 */
export const getBankCardInfo = () => http.post('/finance/Cash_account/getBankCardInfo')

/**
 * @description 绑定/修改银行卡
 */
export const setBankCard = (params) => http.post('/finance/Cash_account/setBankCard', params)

/**
 * @description 删除银行卡
 */
export const delBankCard = (params) => http.post('/finance/Cash_account/delBankCard', params)

/**
 * @description 执行下单操作
 */
export const confirmOrder = (params) => http.post('/shop/order/confirm_order', params)

/**
 * @description 立即购买
 */
export const payOrder = (params) => http.post('/payment/pay/pay', params)

/**
 * @description 获得用户实名认证信息
 */
export const getRealInfo = () => http.post('/member/personal/real_show')

/**
 * @description 提交实名认证
 */
export const setRealInfo = (params) => http.post('/member/personal/user_real_name', params)

/**
 * @description ocr识别身份证
 */
export const alyocr = (params) => http.post('/member/personal/alyocr', params)

/**
 * @description 修改交易密码
 */
export const changeTradePwd = (params) => http.post('/member/personal/changeTradePwd', params)

/**
 * @description 修改交易密码
 */
export const takeDelivery = (params) => http.post('/shop/transport/take_delivery', params)
